import request from '@/libs/request';

export default {
	//返回指定类型的用户列表
	getListUserByType: (params = {}, options = {}) => {
		return request.get('/patrol/listUserByType', params, options)
	},
	//巡视统计
	getPatrolStatistics: (params = {}, options = {}) => {
		return request.get('/patrol/patrolStatistics', params, options)
	},
	//货站巡视统计
	getBuildingStatistics: (params = {}, options = {}) => {
		return request.get('/patrol/buildingStatistics', params, options)
	},
	//常规巡视
	commonPatrol: (params = {}, options = {}) => {
		return request.post('/patrol/commonPatrol', params, options)
	},
	//检查巡视点位是否可操作
	checkPatrolPoint: (params = {}, options = {}) => {
		return request.post('/patrol/checkPatrolPoint', params, options)
	},
	//删除巡视资源
	deletePatrolResource: (options = {}) => {
		return request.delete('/patrol/deletePatrolResource?resourceId=' + options.resourceId, {}, options)
	},
	//获取任务列表
	getTask: (params = {}, options = {}) => {
		return request.get('/patrol/getTask', params, options)
	},
	//获取巡视资源
	listPatrolResource: (params = {}, options = {}) => {
		return request.get('/patrol/listPatrolResource', params, options)
	},
	//点位巡视
	pointPatrol: (params = {}, options = {}) => {
		return request.post('/patrol/pointPatrol', params, options)
	},
	//获取点位树
	points: (params = {}, options = {}) => {
		return request.get('/patrol/points', params, options)
	},
	//获取历史巡视记录
	getRecordList: (params = {}, options = {}) => {
		return request.get('/patrol/record', params, options)
	},
	//提交巡视轮次
	submitTurn: (params = {}, options = {}) => {
		return request.post('/patrol/submitTurn', params, options)
	}
}
